import 'package:shared_preferences/shared_preferences.dart';

class LocalStorage {
  
  static Future setInt(String key, int value) async {
    return (await SharedPreferences.getInstance()).setInt(key, value);
  }

  static Future setBool(String key, bool value) async{
    return (await SharedPreferences.getInstance()).setBool(key, value);
  }

  static Future setDouble(String key, double value) async{
    return (await SharedPreferences.getInstance()).setDouble(key, value);
  }

  static Future setString(String key, String value) async {
    return (await SharedPreferences.getInstance()).setString(key, value);
  }

  static Future setStringList(String key, List<String> value) async{
    return (await SharedPreferences.getInstance()).setStringList(key, value);
  }



  static Future<int?> getInt(String key) async{
    return (await SharedPreferences.getInstance()).getInt(key);
  }

  static Future<bool?> getBool(String key) async{
    return (await SharedPreferences.getInstance()).getBool(key);
  }

  static Future<double?> getDouble(String key) async{
    return (await SharedPreferences.getInstance()).getDouble(key);
  }

  static Future<String?> getString(String key) async {
    return (await SharedPreferences.getInstance()).getString(key);
  }

  static Future<List<String>?> getStringList(String key) async {
    return (await SharedPreferences.getInstance()).getStringList(key);
  }



  static Future remove(String key) async {
    return (await SharedPreferences.getInstance()).remove(key);
  }

}
